﻿using System;
using Douban.Core;
using Douban.Modules.Friends.ViewModels;
using Microsoft.Practices.Composite.Regions;
using System.Windows.Threading;

namespace Douban.Modules.Friends.Views
{
    /// <summary>
    /// Interaction logic for FriendListView.xaml
    /// </summary>
    public partial class FriendListView : IContactListView
    {
        public FriendListView()
        {
            InitializeComponent();
        }

        public IContactListViewModel Context
        {
            get { return this.DataContext as IContactListViewModel; }
            set 
            {
                if (this.DataContext != value)
                {
                    this.DataContext = value;
                }
            }
        }
    }
}
